#!/bin/bash

filelist="cureskill_class.php sptskill_class.php abnskill_class.php specskill_class.php physkills mgcskills defafter_status.php"
confile="talkconf.ini"
> $confile
for file in $filelist
do
	if [ -f $file ];then
		c=`grep -c "spec_talk" $file | grep -v "^\/\/"`
		c=`echo $c | cut -d":" -f2`
		echo "$file=$c" >> $confile
	else 
		for f in $file/*
		do
			c=`grep -c "spec_talk" $f | grep -v "^\/\/"` 
			c=`echo $c | cut -d":" -f2`
			echo "`basename $f`=$c" >> $confile
		done
	fi
done
